package com.xinhe.web.reposity;

import com.xinhe.web.entity.SellerShopTypeGoodsRelation;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface SellerShopTypeGoodsRelationRepository  extends JpaRepository<SellerShopTypeGoodsRelation, Long> {
    @Query(value = "select * from tb_seller_shop_type_goods_relation  where removed = 0 and f_seller_shop_type_id = ?1 and f_goods_id = ?2", nativeQuery = true)
    SellerShopTypeGoodsRelation findByTypeIdAndGoodsId(Long sellerShopTypeId, Long goodsId);
}
